<b>You logged as <? echo $data['Account']['email']; ?>,
<a id="accounts-welcome" href="#">Wyloguj</a>
</b>
<script>
new Request.HTML({update:'page-content',url:'index/content'}).post();
$('accounts-welcome').addEvent('click', function() {
    new Request.HTML({update:'page-head',url:'accounts/logout'}).post();
});
</script>